<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use App\Models\User;

class Status extends Model
{

    protected $fillable = ['user_id','content'];

    /**
     * 关联用户（形成多条微博关联一个用户）
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     */
    public function user()
    {
        return $this->belongsTo(User::class);
    }

    public function create()
    {

    }
}
